package PTA.Mianxiangduixiang.ex07;

import java.util.Scanner;
class Person{
    private String name;
    private int age;
    Person(String name,int age){
        this.name = name;
        this.age = age;
    }
    Person(){}
    @Override
    public String toString() {
        return "this person is "+name+",her age is "+age;
    }
}
public class ex07 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String name1 = "lili";
        int age1 = 19;
        String name2="lucy";
        int age2 = 20;
        Person p1 = new Person(name1,age1);
        Person p2 = new Person(name2,age2);
        System.out.println(p1.toString());
        System.out.println(p2.toString());
    }
}
